#! /bin/sh

infile=index.html
outfile=index_html
headmark=__INDEX_HTML_H__

echo "#ifndef $headmark" > ${outfile}.h
echo "#define $headmark" >> ${outfile}.h

echo "const char "$outfile"[] = \"\\" >> ${outfile}.h
awk '{ print $0 "\\r\\n \\" }' $infile |sed 's/\"/\\"/g' >> ${outfile}.h
echo "\";" >> ${outfile}.h

echo "#endif /* $headmark */" >> ${outfile}.h
